<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Search for the first index in the Judy array</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="judy.destruct.html">Judy::__destruct</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="judy.firstempty.html">Judy::firstEmpty</a></div>
 <div class="up"><a href="class.judy.html">Judy</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="judy.first" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Judy::first</h1>
  <p class="verinfo">(PECL judy &gt;= 0.1.1)</p><p class="refpurpose"><span class="refname">Judy::first</span> &mdash; <span class="dc-title">Search for the first index in the <a href="class.judy.html" class="classname">Judy</a> array</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-judy.first-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <span class="methodname"><strong>Judy::first</strong></span>
    ([ <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$index</code></span>
  ] )</div>

  <p class="para rdfs-comment">
   Search (inclusive) for the first index present that is equal to or greater than the passed Index. 
  </p>
  
 </div>

 
 <div class="refsect1 parameters" id="refsect1-judy.first-parameters">
  <h3 class="title">参数</h3>
  <dl>

   
    <dt>
<em><code class="parameter">index</code></em></dt>

    <dd>

     <p class="para">
      The index can be an integer or a string corresponding to the index where to start the search. 
     </p>
    </dd>

   
  </dl>

 </div>

 
 <div class="refsect1 returnvalues" id="refsect1-judy.first-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Return the corresponding index in the array.
  </p>
 </div>

 
 
</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="judy.destruct.html">Judy::__destruct</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="judy.firstempty.html">Judy::firstEmpty</a></div>
 <div class="up"><a href="class.judy.html">Judy</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
